/*
 * @Author: yumao 123456
 * @Date: 2024-01-22 09:20:53
 * @LastEditors: yumao 123456
 * @LastEditTime: 2024-03-13 10:04:01
 * @FilePath: \交易所大屏\src\api\home.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Qs from 'qs'
import request from '@/utils/request'
//公司大屏左侧接口
export function screenLeftData(params) {
    return request({
      url: '/screen/screenLeftData',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
}
//公司大屏中间接口
export function screenMidData(params) {
    return request({
      url: '/screen/screenMidData',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
}
  
//公司大屏右侧接口
export function screenRightData(params) {
    return request({
      url: '/screen/screenRightData',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
}
  
//1.挂牌金额详情接口
export function listingAmount(params) {
    return request({
      url: '/screenTable/listingAmount',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//2. 成交金额详情接口
export function transactionAmount(params) {
    return request({
      url: '/screenTable/transactionAmount',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//3. 经办人详情
export function operator(params) {
    return request({
      url: '/screenTable/operator',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//4. 出入金详情
export function cash(params) {
    return request({
      url: '/screenTable/cash',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//5. 挂牌客户详情
export function listedCustomers(params) {
    return request({
      url: '/screenTable/listedCustomers',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//6. 成交客户详情
export function transactionCustomers(params) {
    return request({
      url: '/screenTable/transactionCustomers',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//7.回头客详情
export function returningCustomers(params) {
    return request({
      url: '/screenTable/returningCustomers',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//8. 挂牌机构详情
export function listingInstitutions(params) {
    return request({
      url: '/screenTable/listingInstitutions',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//9. 竞价数与竞价率详情
export function bid(params) {
    return request({
      url: '/screenTable/bid',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//10. 溢价率详情
export function premiumRate(params) {
    return request({
      url: '/screenTable/premiumRate',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//11. 月挂牌成交量详情
export function monthlyListingTransactions(params) {
    return request({
      url: '/screenTable/monthlyListingTransactions',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//12. 月挂牌成交量金额详情
export function monthlyListingTransactionsMoney(params) {
    return request({
      url: '/screenTable/monthlyListingTransactionsMoney',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//13. 市区成交情况
export function cityTransactionSituation(params) {
    return request({
      url: '/screenTable/cityTransactionSituation',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//14. 交易费率详情
export function transactionRate(params) {
    return request({
      url: '/screenTable/transactionRate',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//15. 在挂项目天数详情
export function hangingProjects(params) {
    return request({
      url: '/screenTable/hangingProjects',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//16. 竞价率详情
export function rateofbid(params) {
    return request({
      url: '/screenTable/rateofbid',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//17. 项目详情
export function projectDetails(params) {
    return request({
      url: '/screenTable/projectDetails',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }
//18 top交易费
export function transactionTop(params) {
    return request({
      url: '/screenTable/transactionTop',
      headers: {
        'Content-Type': 'application/json'
      },
      method: 'get',
      params,
      paramsSerializer: function(params) {
        return Qs.stringify(params, { arrayFormat: "repeat" });
      },
    })
  }